<div class="container-fluid" ng-controller="AccountPwdController">
    <form name="modifyPwdForm" novalidate="novalidate">
        <div class="form-group" ng-show="pwd.lotteryAccountInfo && pwd.lotteryAccountInfo.is_modified_password==0">
            <label for="answer">重置密码的问题</label>
            <label class="sr-only" for="question">重置密码的问题</label>
            <select class="form-control" id="question" name="question" ng-model="pwd.question" ng-options="question1.question_context for question1 in pwd.questionList" ng-required="pwd.lotteryAccountInfo && pwd.lotteryAccountInfo.is_modified_password==0">
                <option value="">选择重置密码的问题</option>
            </select>
            <div  ng-show="modifyPwdForm.question.$error.required" class="form-input-error">重置密码的问题必须填写！</div>
        </div>
        <div class="form-group" ng-show="pwd.lotteryAccountInfo && pwd.lotteryAccountInfo.is_modified_password==0">
            <label for="answer">重置密码的答案</label>
            <input type="text" class="form-control" id="answer" name="answer" ng-model="pwd.answer" placeholder="重置密码的答案" ng-required="pwd.lotteryAccountInfo && pwd.lotteryAccountInfo.is_modified_password==0">
            <div  ng-show="modifyPwdForm.answer.$error.required" class="form-input-error">重置密码的答案必须填写！</div>
        </div>
        <div class="form-group">
            <label for="curr_pwd">当前密码</label>
            <input type="password" class="form-control" id="curr_pwd" name="curr_pwd" ng-model="pwd.curr_pwd" placeholder="当前密码" required>
            <div  ng-show="modifyPwdForm.curr_pwd.$error.required" class="form-input-error">当前密码必须填写！</div>
        </div>
        <div class="form-group">
            <label for="new_pwd">新密码</label>
            <input type="password" class="form-control" id="new_pwd" name="new_pwd"  ng-model="pwd.new_pwd" placeholder="新密码" required>
            <div  ng-show="modifyPwdForm.new_pwd.$error.required" class="form-input-error">新密码必须填写！</div>
        </div>
        <div class="form-group">
            <label for="confirm_new_pwd">确认新密码</label>
            <input type="password" class="form-control" id="confirm_new_pwd" name="confirm_new_pwd"  ng-model="pwd.confirm_new_pwd" placeholder="确认密码" required match="pwd.new_pwd">
            <div  ng-show="modifyPwdForm.confirm_new_pwd.$error.required" class="form-input-error">确认新密码必须填写！</div>
            <div  ng-show="modifyPwdForm.confirm_new_pwd.$error.match" class="form-input-error">确认新密码与新密码不相等！</div>
        </div>
        <button  class="btn btn-default"  ng-disabled="modifyPwdForm.$dirty && modifyPwdForm.$invalid"  ng-click="pwd.modifyPwd()">修改</button>
    </form>
</div>